#ifndef _MOTOR_INFOR_H
#define _MOTOR_INFOR_H
#include "adc_val.h"
typedef struct{
    float _motor_spd;
    float _motor_ang;
}motor_BLG_t;

typedef struct{
    float _dutya;
    float _dutyb;
    float _dutyc;
}motor_duty_abc_t;

typedef struct{
    float _ia;
    float _ib;
    float _ic;
}motor_iabc_t;

typedef struct{
    float _ial;
    float _ibe;
}motor_iab_t;

typedef struct{
    float _id;
    float _iq;
}motor_idq_t;

typedef struct{
    float _id_ref;
    float _iq_ref;
}motor_idq_ref_t;

typedef struct{
    float _ual;
    float _ube;
}motor_uab_t;

typedef struct {
    float duty_show[3];
		float uabc[3];
		float ibac[3];
    uint8_t tail_data[4];
}VOFA_SHOW_DATA_T;

extern motor_iabc_t REA_iabc;
extern motor_iab_t REA_ialbe;
void calrk_func(adc_transform_t* iabc,motor_iab_t* ialbe,motor_iabc_t* motor_iabc);
#endif
